﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="uc_contact_main.ascx.cs" Inherits="main_uc_contact_main" %>
<%@ Register Assembly="ESWebFramework.I18N" Namespace="ESWebFramework.I18N" TagPrefix="eswf" %>
<script>
    $(document).ready(function() {
    $("#ctl00_ContentPlaceHolder1_uc_contact_main1_ESi18nButton1").click(Validate);
    });
    function Validate() {
        var returnVal = true;
        $("#main_center input[validate='true']").each(function(val, i) {
            if ($("#" + i.id).val() == "") {
                returnVal = false;
                $("#span" + i.id).remove();
                $("#" + i.id).after("<span id='span" + i.id + "' style='color:red;margin-left:2px;font-weight:bold'>*</span>");
                $("#" + i.id).css('border-style', 'solid 1px');
                $("#" + i.id).css('border-color', 'red');
                $("#" + i.id).blur(function() {
                    if ($(this).val() != "") {
                        $("#" + i.id).css('border-style', 'solid 1px');
                        $("#" + i.id).css('border-color', 'black');
                    }
                });
            }
        });
        if (!returnVal) $("#errMsg").show();
        return returnVal;
    }
</script>
<div id="main_center">
    <div class="main_top" style="text-transform:uppercase;font-size:11px;">
        <eswf:ESi18nLabel ID="ESi18nLabel1" TextReference="contact_admin" CssClass="_bold" runat="server"></eswf:ESi18nLabel>
    </div>
    <div class="main_content">
        <div id="contact_admin" style="padding:5px">
            <asp:PlaceHolder ID="ContentPlaceHolder1" runat="server"></asp:PlaceHolder>
            <div style="background-color:#DCDDDF;padding-bottom:5px;padding-top:5px;line-height:18px;text-align:left;padding-left:12px;width:98%;">
                <asp:Label ID="lblText" runat="server" Text=""></asp:Label>
            </div>
            <div class="_contact_about">
                <eswf:ESi18nLabel ID="ESi18nLabel3" TextReference="your_details" runat="server"></eswf:ESi18nLabel>
            </div>
            <div class="contact_form_label" style="padding-top:8px">
                <eswf:ESi18nLabel ID="ESi18nLabel4" TextReference="comp_name" runat="server"></eswf:ESi18nLabel>
            </div>
            <div class="contact_form_item" style="padding-top:8px">
                <asp:TextBox ID="tb_comp_name" runat="server"></asp:TextBox>
            </div>
            <div class="contact_form_label">
                <eswf:ESi18nLabel ID="ESi18nLabel5" TextReference="country_origin" runat="server"></eswf:ESi18nLabel>
            </div>
            <div class="contact_form_item">
                <asp:TextBox ID="tb_country_region" runat="server"></asp:TextBox>
            </div>
            <div class="contact_form_label">
                <eswf:ESi18nLabel ID="ESi18nLabel6" TextReference="contact_person" runat="server"></eswf:ESi18nLabel>
            </div>
            <div class="contact_form_item">
                <asp:TextBox ID="tb_contact_person" runat="server"></asp:TextBox>
            </div>
            <div class="contact_form_label" style="padding-bottom:8px">
                <eswf:ESi18nLabel ID="ESi18nLabel7" TextReference="contact_email" runat="server"></eswf:ESi18nLabel>
            </div>
            <div class="contact_form_item">
                <asp:TextBox ID="tb_contact_email" runat="server"></asp:TextBox>
            </div>
            
            <div class="_contact_about">
                <eswf:ESi18nLabel ID="ESi18nLabel8" TextReference="write_to_us" runat="server"></eswf:ESi18nLabel>
            </div>
            <div class="contact_form_label" style="padding-top:8px">
                <eswf:ESi18nLabel ID="ESi18nLabel9" TextReference="contact_subject" runat="server"></eswf:ESi18nLabel>
            </div>
            <div class="contact_form_item" style="padding-top:8px">
                <asp:TextBox ID="tb_contact_subject" runat="server"></asp:TextBox>
            </div>
            <div class="contact_form_label">
                <eswf:ESi18nLabel ID="ESi18nLabel10" TextReference="contact_message" runat="server"></eswf:ESi18nLabel>
            </div>
            <div class="contact_form_item">
                <asp:TextBox ID="tb_contact_message" style="margin-left:4px;" runat="server" Rows="10" TextMode="MultiLine" 
                    Width="300px"></asp:TextBox>
            </div>
            <div class="contact_form_label">
                
            </div>
            <div style="clear:both;text-align:right;width:100%">
            <div id="errMsg" style="float:left;display:none">
                <span style="color:Red">
                <eswf:ESi18nLabel ID="ESi18nLabel11" TextReference="error_msg" runat="server"></eswf:ESi18nLabel></span>
            </div>
                <eswf:ESi18nButton ID="ESi18nButton1" CssClass="contact_submit" 
                    TextReference="submit" runat="server" onclick="ESi18nButton1_Click" />
            </div>
        </div>
    </div>
    <div class="main_top" style="text-transform:uppercase;font-size:14px;">
    </div>
</div>